package com.example.demo.mapper;

import com.example.demo.entity.TpAdmin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
* @author Administrator
* @description 针对表【tp_admin(管理员列表)】的数据库操作Mapper
* @createDate 2022-09-27 10:54:01
* @Entity com.example.demo.entity.TpAdmin
*/
@Mapper
public interface TpAdminMapper extends BaseMapper<TpAdmin> {
    List<TpAdmin> selectslist();
    TpAdmin selectoneid(int id);
    //分页
    List<TpAdmin> gettplimit(Map<String ,Object> map);

    //使用注解开发,注解在接口上实现
    @Select("select * from tp_admin")
    List<TpAdmin> gettp_admins();

    //foreach yufachaxun
    List<TpAdmin> foreachlists(List<Integer> idlist);

    int insertcz(Map<String,Object> map);

}




